#!/bin/bash

if [ -z "$1" ] || [ ! -e "$1" ]; then
	echo "ERROR: Please input the shell file!"
	exit 0	
fi

/usr/local/mongodb/bin/mongo -u test -p admin --authenticationDatabase test < $1 > ./test.log